<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <!-- tr和option不要作为组件的根元素，会导致渲染不出来 -->
      <select>
        <child></child>
      </select>
    </div>

    <script src="../Vue.js"></script>
    <script>
      const Child = {
        template: `
          <option>child</option>
        `,
      };
      new Vue({
        el: "#app",
        data: {},
        components: {
          Child,
        },
      });
    </script>
  </body>
</html>
